<?php
//模板调用
function template_rent($name) {
	global $_SCONFIG, $_SGLOBAL;
	
	if(strexists($name,'/')) {
		$tpl = $name;
	} else {
		$tpl = "template/$name";
	}
	$objfile = S_ROOT.'./data/tpl_cache/'.str_replace('/','_',$tpl).'.php';
	//if(!file_exists($objfile)) {
		include_once(S_ROOT.'./source/function_template.php');
		parse_template($tpl);
	//}
	
	return $objfile;
}
?>